package com.qfjy.homework.chenxufan;

/**
 * @author : ChenXufan
 * @version : 1.0
 * @date : 2022-09-27 16:57
 */
public class TestDemo {
    public static void main(String[] args) {
        //创建被代理对象
        ITBoss itBoss = new ITBoss();
        //创建代理对象
        Secretary secretary = new Secretary(itBoss);
        secretary.sign();

        //动态代理
        ProxyUtils utils = new ProxyUtils(itBoss);
        Boss proxy = (Boss) utils.getProxy();
        System.out.println(proxy);
        proxy.sign();

    }
}
